package com.cndongtai.dao.inter;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cndongtai.po.Light;
import com.cndongtai.vo.LightInfoBean;

public interface LightMapper {
	
	public List<Light> queryLightList();
	
	public List<Light> queryLightListByIds(List<Integer> ids);
	
	public List<Light> queryLightListByDtuId(Long dtuId);
	
	public boolean delLight(Integer lightId);
	
	public boolean delLightByDtuId(Integer dtuId);
	
	public LightInfoBean queryLightInfoById(Integer lightId);
	
	public Light queryLightById(Integer lightId);
	
	public Light queryLightByLightNum(String lightNum);
	
	public Light queryLightByLightNumAndPanId(@Param(value="panId")String panId, @Param(value="lightNum")String lightNum);
	
	public boolean addLight(Light light);
	
	public int changeLightStateByDtuId(Long dtuId, Integer lightState);
	
	public int changeOnlineStateByDtuId(Long dtuId, Integer onlineState);
	
	public int changeLightState(Integer lightId, Integer lightState);
	
	public int updateLightLocation(Light light);
	
	public boolean changeLightNum(Integer lightId, String lightNum);
	
}
